﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Documents;
using System.Windows.Media.Imaging;

namespace PersonalDiary.Album.Model
{
    public class ImageSourceModel : INotifyPropertyChanged
    {
        private BitmapSource _ImageBitmapSource = null;
        public BitmapSource ImageBitmapSource
        {
            get
            {
                return _ImageBitmapSource;
            }
            set
            {
                _ImageBitmapSource = value;
                OnPropertyChanged("ImageBitmapSource");
            }
        }

        private string _FilePath = null;
        public string FilePath
        {
            get
            {
                return _FilePath;
            }
            set
            {
                _FilePath = value;
                OnPropertyChanged("FilePath");
            }
        }

        private string _FileName = null;
        public string FileName
        {
            get
            {
                return _FileName;
            }
            set
            {
                _FileName = value;
                OnPropertyChanged("FileName");
            }
        }

        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler PropertyChanged;
        private void OnPropertyChanged(string propName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propName));
            }
        }

        #endregion
    }
}
